(function(){
    $.ajax({
        url:'http://chst.vip:1234/api/getsitenav'
    }).then(res=>{
        let html=res.result.reduce((value,item)=>{
            return value+`
            <li navid=${item.navId}>
            <a href="${item.navHref}">
                <img src="${item.navImg}" alt="">
                <span>${item.navTitle}</span>
            </a>
        </li>
            `
        },"")

        $('.info').html(html)
    })
})()